// 父传子

function Son (props) {
  console.log(props)
  return (
    <div>this is son {props.children}</div>
  )
}

function App () {
  const name = 'this is app name'
  return (
    <div>
      <Son>
        <span>this is span</span>
      </Son>
    </div>
  )
}

export default App
